package org.example.demos.pattern.observer;

public class Leader extends Subject{
    @Override
    void push(int state) {
        super.observerList.forEach(observer -> observer.response(state));
    }
}
